import { appStore } from '@/sotre/modules/app';
import { get } from '@/api/index';

export const getEnterpriseList = () => {
    return new Promise((resolve, reject) => {
        const { userInfo, enterpriseList } = toRefs(appStore());
        get('/platform/users/getMyEnterprise?uid=' + userInfo.value.uid).then(res => {
            enterpriseList.value = res.data;
            resolve(res.data);
        });
    });
};
